package com.gj.xxl.job.admin.core.route.strategy;

import com.gj.xxl.job.admin.core.route.RouteStrategy;

import java.util.List;

/**
 * 选择最后一台机器
 */
public class LastRouteStrategy implements RouteStrategy {

    @Override
    public String route(Integer jobId, List<String> addressList) {
        return addressList.get(addressList.size() - 1);
    }
}
